package com.amado.easyui2.dao;

import java.util.List;

import com.amado.easyui2.domain.CoachCarEntity;
import com.amado.easyui2.vo.Page;

public interface CoachCarDao {
	/**
	 * 添加教练车
	 * 
	 * @param lcn
	 */
	void add(CoachCarEntity lcn);

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	int delete(List<Long> id);

	/**
	 * 修改教练车信息
	 * 
	 * @param id
	 * @return
	 */
	int update(CoachCarEntity id);

	/**
	 * 查询所有教练车信息
	 * 
	 * @return
	 */
	public CoachCarEntity getById(Long id);

	/**
	 * 用户登录
	 * 
	 * @param user
	 * @return
	 */
	public List<CoachCarEntity> login(CoachCarEntity user);


	/**
	 * 查询单个
	 * 
	 * @param tm
	 * @param lcn
	 * @return
	 */
	public int listAllCount(String tm, String lcn);

	/**
	 * 分页查询
	 * 
	 * @param tm
	 * @param lcn
	 * @param page
	 * @return
	 */
	List<CoachCarEntity> listAll(String tm, String lcn, Page page);
	
	CoachCarEntity getByLcn(String lcn);
	
	

}
